#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>
#include<math.h>
int main() {
    long long n;
    scanf("%lld", &n);
    long long ret = 0;
    int m = 0;
    while (n)
    {
        //n = n % 10;
        if ((n%10) % 2 == 0)
        {
            ret = ret + 0 * pow(10, m);
        }
        else {
            ret = ret + 1 * pow(10, m);
        }
        n = n / 10;
        m++;
    }
    printf("%lld", ret);
    return 0;
}